#include<bits/stdc++.h>
using namespace std;
//#define int long long
signed main() {
	int t;
	cin >> t;
	while (t--) {
		int n, x, y;
		cin >> n >> x >> y;
		vector<int> a(n + 1);
		for (int i = 1; i <= n; i++)
			cin >> a[i];
		sort(a.begin() + 1, a.end(), greater<int>());

		double sum = 0;

		int minus1 = a[1] - y <= 0 ? a[1] : y;
		int minus2 = a[2] - y <= 0 ? a[2] : y;

		if (minus1 + a[2] * (1 - x / 100.0) < minus2 + a[1] * (1 - x / 100.0)) {
			sum = (a[2] - y <= 0 ? 0 : a[2] - y) + a[1] * 1.0 * x / 100;
		} else {
			sum = (a[1] - y <= 0 ? 0 : a[1] - y) + a[2] * 1.0 * x / 100;
		}

		for (int i = 3; i <= n; i++) {
			sum += a[i];
		}
		cout << sum << endl;
	}
	return 0;
}
